/**
*
* useage: STK.kit.extra.count(str)
*/
var STK = {
    		core:{
    			str:{
    				bLength:function(a){
	    				 if (!a)
	    			     return 0;
	    			     var b = a.match(/[^\x00-\xff]/g);
	    			     return a.length + (b ? b.length : 0)
    				}
    			}
    		},
    		kit:{
    			extra:{
    				count:function(a){
    					function b(b) {
    						var c = 41, d = 140, e = 20, f = b, g = b.match(/http:\/\/[a-zA-Z0-9]+(\.[a-zA-Z0-9]+)+([-A-Z0-9a-z_\$\.\+\!\*\(\)\/,:;@&=\?\~\#\%]*)*/gi) || [], h = 0;
    						for (var i = 0, j = g.length; i < j; i++) {
    						    var k = STK.core.str.bLength(g[i]);
    						    if (/^(http:\/\/t.cn)/.test(g[i]))
    							continue;
    						    /^(http:\/\/)+(t.sina.com.cn|t.sina.cn)/.test(g[i]) || /^(http:\/\/)+(weibo.com|weibo.cn)/.test(g[i]) ? h += k <= c ? k : k <= d ? e : k - d + e : h += k <= d ? e : k - d + e;
    						    f = f.replace(g[i], "");
    						}
    						var l = Math.ceil((h + STK.core.str.bLength(f)) / 2);
    						return l;
    					}
    					a = a.replace(/\r\n/g, "\n");
    					return b(a);
    				}
    			}
    		}
    }